﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace HigLabo.WindowsAzure.RestService.ServiceManagement
{
    public class UpdateDeploymentStatusBody
    {
        public enum DeploymentStatus
        {
            Running,
            Suspended,
        }
        public UpdateDeploymentStatusBody.DeploymentStatus Status { get; private set; }
        public UpdateDeploymentStatusBody
            (UpdateDeploymentStatusBody.DeploymentStatus status)
        {
            this.Status = status;
        }
        public String CreateText()
        {
            var ns = XNamespace.Get("http://schemas.microsoft.com/windowsazure");
            var doc = new XDocument();
            var root = new XElement(ns.GetName("UpdateDeploymentStatus"));
            doc.Add(root);
            root.Add(new XElement(ns.GetName("Status"), this.Status.ToString()));
            return doc.ToString();
        }


    }
}
